import request from "@/utils/request";

export default {
  getAll() {
    return request({
      url: "/video/getAll",
      method: "get",
    });
  },
  list(name, currentPage, pageSize) {
    name = name ? name : "_";
    return request({
      url: `/video/list/${name}/${currentPage}/${pageSize}`,
      method: "get",
    });
  },
  getTotal(name) {
    name = name ? name : "_";
    return request({
      url: `/video/getTotal/${name}`,
      method: "get",
    });
  },
  deleteByURL(data) {
    return request({
      url: `/video/deleteByURL`,
      method: "post",
      data,
    });
  },
};
